<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
body{
    margin: 0;
    height: 100vh;
}
#all{
    width:80vw;
    height:80vh;
    padding-top: 5vh;
    margin: 0 auto;
    flex-direction: column;
  display: flex;
  
  
}
#img{
    width:23vh;
    height: 23vh;
    border: 1px solid white;
    border-radius: 50%;
    background-image: url(huaer.jpg);
    background-size: 100% 100%;
    margin:0 auto;
}
#inputc{
    height:16vh;
    width:100%;
    margin-top: 10vh;
margin-bottom: 2vh;
}

#inputb{
    width:60vw;
    background:white;
 border:none;    
}
#inputa{
    width:60vw;
    background:white;
 border:none; 
}
#denglu{
    width:80vw;
    height:9vh;
    border:1px solid white;
    background-color: green;
    margin-bottom: 2vh;
      text-align: center;
    border-radius: 2vh;
}
#denglu>a{
    line-height: 9vh;
  color: white;
    text-decoration: none;
}
#denglu>a>span{
   
margin:0 4vw;
}
#inputc>form>label>span{
font-size: 3vh;
height: 0;
}

#footer{
    height: 9vh;
    width: 80vw;
    display:flex;
    margin-top: 2vh;
    flex-direction: column;
    align-items: center;
}
#footerone,#footertwo{
    line-height: 9vh;
}
#footerone{
    margin-bottom: 5vh;
}
#footerone>a>span,#footertwo>a>span{
    font-size: 2.8vh;
    color: grey;
}
#footertwo>a,#footerone>a{
    text-decoration: none;
}

hr{
    width:80vw;
    margin:5vh auto；
}
#diyi{
    width:10vw；
}
@media  screen and (orientation:landscape){
    /*orientation:landscape是横竖屏幕切换*/
    #all{
        flex-direction: column;
        justify-content: space-between;
        padding-bottom: 10vh;
        position: relative;
    }
#img{
    width:32vh;
    height:32vh;
    margin-bottom: -7vh;
}
#inputc{
    position: relative;
    top: 6vh;
}
#denglu{
    position:relative;
    top:13vh;
}
body>#all>#footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position:relative;
    top:15vh;
   
}

#denglu{

}

}

    </style>
</head>
<body>
    <div id="all">
        <div id="img"></div>
        <div id="inputc">
            <form action="">
                <label id="diyi" for="inputa"><span>账户：</span></label>
                <input type="text" value="" name="denglu" id="inputa" placeholder="请输入帐号">
                <!--placeholder是文本框默认输入文字-->
                <hr>
                <label id="dier" for="inputb"><span>密码：</span></label>
                <input type="password" id="inputb" placeholder="请输入密码">
                <hr>
            </form>
        </div>
        <div id="denglu">
            <a href="">登<span></span>录</a>
        </div>
        <div id="footer">
            <div id="footerone"><a href=""><span>忘记密码</span></a></div>
            <div id="footertwo"><a href=""><span>新注册用户</span></a></div>
        </div>
    </div>
</body>
</html>